package com.dmpb.swyx.controller;


import java.util.HashMap;
import java.util.Map;

/**
 * Created by lxin@fxiaoke.com on 7/14/16.
 */


public class dmpbResponseJson {

  public static final String OK = "OK";
  public static final String ERROR = "ERROR";
  public static final String NOT_FOUND = "NOT_FOUND";

  final Map result = new HashMap();

  @SuppressWarnings("unchecked")
  private void set( String key, Object value) {
    result.put(key, value);
  }

  public void setDescribe(Object value) {
    set("describe", value);
  }

  public void setDescribeDraft(Object value) {
    set("describe_draft", value);
  }

  public void setObjectData(Object value) {
    set("object_data", value);
  }

  public void setDataSourceConfig(Object value) {
    set("data_source_config", value);
  }

  public void setDataStoreConfig(Object value) {
    set("data_store_config", value);
  }

  public void setUILayout(Object value) {
    set("ui_layout", value);
  }

  public void setMessage(String message) {
    set("message", message);
  }

  public void setErrorDetail(String errorDetail) {
    set("errorDetail", errorDetail);
  }

  public void setDataStore(Object value){
    set("data_store", value);
  }
}
